from django.contrib import admin
from .models import device_information,Log

admin.site.register(Log)

admin.site.site_header = '鱼竿的后台'  # 设置header
admin.site.site_title = '鱼竿的平台'   # 设置title
admin.site.index_title = '管理！！'

# @admin.register(Log)
# class LogAdmin(admin.ModelAdmin):
#     list_display = ('1','12','123','1234')

@admin.register(device_information)
class DeviceAdmin(admin.ModelAdmin):
    list_display = ('id','ip_address','hostname','vendor')